import request from './index.js'

//获取授权码
export const getLxfss = params => {
    return request({
        method: 'GET',
        url: '/api/nsc/weroad/getCookie?authCode=NDgwYjc2Y2E3YzdiNDIzZTkzYTdlMTJl',
        params
    })
}

// id查询轮播图
export const getInfoById = (params) => {
    return request({
        method: 'GET',
        url: "/api/nsc/admin/ndFrontMenuBanner/getInfoById/" + params.menuId,
    })
}
// 导航配置结构
export const ndFrontMenu = (params) => {
    return request({
      method: "GET",
      url: "/api/nsc/front/ndFrontMenu/list",
      params,
    });
  };
  // 根据导航搜索内容查询的接口
  export const getInfosByName = (params) => {
    return request({
      method: "GET",
      url: "/api/nsc/admin/ndFrontMenu/getInfosByName",
      params,
    });
  };
  // 保存导航Tab信息接口
export const saveOrUpdate = (data) => {
    return request({
      method: "POST",
      url: "/api/nsc/admin/ndFrontMenuBanner/saveOrUpdate",
      data,
    });
  };
  // 上传图片的接口
export const uploads = (data) => {
    return request({
      method: "POST",
      url: "/api/nsc/material/uploads",
      data,
    });
  };
  // 批量删除导航Tab信息
export const delUploads = (data) => {
  return request({
    method: "POST",
    url: "/api/nsc/admin/ndFrontMenuBanner/del/multiple",
    data,
  });
};
// 退出登录的接口
export const tcdl = (data) => {
  return request({
    method: "POST",
    url: "/api/nsc/weroad/logout",
    data,
  });
};